import RecordPublish from './record-publish'
import Asr from './asr'
import Tts from './tts'

export default class Record {
  private publish: RecordPublish

  constructor() {
    this.init()
  }

  private init() {
    this.publish = new RecordPublish()
    this.publish.add(new Asr(), new Tts())
  }

  public start() {
    this.publish.notify('我是初始化数据')
  }

  public stop() {
    this.publish.destory()
  }
}
